package net.guerlab.sdk.anubis.request;

import net.guerlab.sdk.anubis.AnubisConstants;
import net.guerlab.sdk.anubis.entity.ComplaintInfo;
import net.guerlab.sdk.anubis.response.OrderComplaintResponse;

/**
 * 订单投诉请求
 * 
 * @author guer
 *
 */
public class OrderComplaintRequest extends AbstractBusinessRequest<OrderComplaintResponse> {

    /**
     * 投诉信息
     */
    private ComplaintInfo complaintInfo;

    @Override
    protected void createRequestUri(
            StringBuilder builder) {
        builder.append(AnubisConstants.URL_ORDER_COMPLAINT);
    }

    @Override
    protected Object getReuqestData() {
        return complaintInfo;
    }

    /**
     * 返回 投诉信息
     *
     * @return 投诉信息
     */
    public ComplaintInfo getComplaint() {
        return complaintInfo;
    }

    /**
     * 设置投诉信息
     *
     * @param complaintInfo
     *            投诉信息
     */
    public void setComplaint(
            ComplaintInfo complaintInfo) {
        this.complaintInfo = complaintInfo;
    }

}
